#!/bin/sh /etc/rc.common
# Copyright (C) 2006 SDWAN.org

START=95
boot() {
	mount_root done
	rm -f /sysupgrade.tgz && sync
	rm -f /tmp/sysupgrade.tar && sync

	# process user commands
	[ -f /etc/rc.local ] && {
		sh /etc/rc.local
	}

	# set leds to normal state
	. /etc/diag.sh
	set_state done

	sdwan_mon

	# make sure data/config store to flash/disk
	sync
}
